<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
require_once JPATH_BASE .DS. 'components' .DS. 'com_mariageplanner' .DS. 'helpers' .DS. 'modeladmin.php';

/**
 * Guest Model
 */
class MariagePlannerModelGuest extends MariagePlannerBaseModelAdmin
{	
	protected $_table_name = 'guests';

	public function getTable($type = 'Guest', $prefix = 'MariagePlannerTable', $config = array())
	{
		return JTable::getInstance($type, $prefix, $config);
	}
	
	public function getForm($data = array(), $loadData = true)
	{
		// Get the form.
		$form = $this->loadForm('com_mariageplanner.guest', 'guest', array('control' => 'jform', 'load_data' => $loadData));
		if (empty($form)) {
			return false;
		}
	
		return $form;
	}
}
?>